package com.example.demo.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.example.demo.service.EmployeeService;

@Controller
@RequestMapping("emp")
public class EmployeeController {
	
	@Resource
	private EmployeeService employeeService;
	
	@RequestMapping("all")
	@ResponseBody
	public Object findAll() {
		return employeeService.findAll();
	}
}
